2bcbd9dbc99143cc0dec03dfeb66ba3deaaba12c,src/main/java/com/uber/jenkins/phabricator/conduit/DifferentialClient.java,DifferentialClient,postComment,#String#String#boolean#String#,52
Before Change
* @throws ConduitAPIException if any error is experienced talking to Conduit
*/
public JSONObject postComment(String revisionID, String message, boolean silent, String action) throws IOException, ConduitAPIException {
Map params = new HashMap<String, String>();
params.put("revision_id", revisionID);
params.put("action", action);
params.put("message", message);
params.put("silent", silent);
return this.callConduit("differential.createcomment", params);
}
After Change
* @throws IOException if there is a network error talking to Conduit
* @throws ConduitAPIException if any error is experienced talking to Conduit
*/
public JSONObject postComment(String revisionID, String message, boolean silent, String action) throws IOException, ConduitAPIException {
JSONObject params = new JSONObject();
params.element("revision_id", revisionID)
.element("action", action)
.element("message", message)
.element("silent", silent);
return this.callConduit("differential.createcomment", params);
}